import React from 'react';
import Blog from 'blog/main';

import List from 'blog/component/List';
import Single from 'blog/component/Single';

import Router from 'react-router';
var RouteHandler = Router.RouteHandler;
var Route = Router.Route;

// Router
var routes = (
  <Route path="/" handler={Blog}>
    <Route path="/" handler={List}/>
    <Route path="list" handler={List}/>
    <Route path="single" handler={Single}/>
  </Route>
);
Router.run(routes, Router.HashLocation, (Root) => {
  React.render(<Root/>, document.getElementById('eyasweb'));
});




